<template>
  <div>
    <!-- 头部 -->
    <div class="top">
      <span class="uyinyue">优音乐</span>
      <button class="download">下载APP</button>
    </div>
    <!-- 导航部分 -->
    <div class="nav">
      <router-link to="/recommend">推荐</router-link>
      <router-link to="/hot">热歌榜</router-link>
      <router-link to="/search">搜索</router-link>
    </div>
    <!-- 嵌套路由 -->
    <router-view></router-view>
  </div>
</template>

<script>
export default {

}
</script>

<style>
  .top {
    width: 100%;
    height: 82px;
    background-color: #ff4b00;
  }
  .uyinyue {
    color: #fff;
    font-size: 24px;
    line-height: 82px;
    margin-left: 20px;
  }
  .download {
    background-color: #fff;
    color: #ff4b00;
    width: 100px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 20px;
    border-color: #ff4b00;
    float: right;
    margin-top: 22px;
    margin-right: 10px;
  }
  .nav {
    height: 46px;
    width: 100%;
  }
  .nav a {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    width: 32%;
    display: inline-block;
    text-align: center;
    line-height: 46px;
  }
  .nav a.router-link-active {
    color: #ff4b00;
  }
</style>